package com.yes_iot.dao;

import com.yes_iot.entity.LargeScreenConfiguration;
import com.yes_iot.entity.LargeScreenMoudle;
import com.yes_iot.entity.VisualMoudle;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.UUID;

@Repository
public interface LargeScreenMoudleDao extends JpaRepository<LargeScreenMoudle, UUID> {

    @Query("select lsm from LargeScreenMoudle lsm where lsm.largeScreenConfigurationId= :largeScreenConfigurationId ")
    List<LargeScreenMoudle> findByLargeScreenConfigurationId(@Param("largeScreenConfigurationId") UUID largeScreenConfigurationId);
}
